<?php
/**
 * @name: registry.class.php
 * @version: 1.0
 * @package: PHP MVC Framework
 * @uses: Handles variable setting
 * @copyright: MIT
 * @author Andrew Lowther
 */

class Registry {

    /**
     * @var $vars
     * @type array
     * @access Private
     */
    private $vars;

    /**
     * @method __set
     * @param string $index
     * @param mixed $value
     * @return void
     */
    public function __set($index, $value) {

        $this->vars[$index] = $value;

    }

    /**
     * @method __get
     * @param mixed $index
     * @return mixed
     */
    public function __get($index) {

        return $this->vars[$index];

    }

}

?>
